Function SaveScreenshot()
  Local sFileName$
  Local iFileNumber% = 0
  Repeat
    iFileNumber = iFileNumber + 1
    sFileName$ = "Screenshot" + String$("0", 3 - Len(Str(iFileNumber))) + iFileNumber + ".bmp"
  Until Not(FileType(sFileName))
  SaveBuffer FrontBuffer(), sFileName
End Function

;~IDEal Editor Parameters:
;~C#Blitz3D